<?php

namespace Database\Factories;


use App\Models\WechatMessage;
use Illuminate\Database\Eloquent\Factories\Factory;

class WechatMessageFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = WechatMessage::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'openid' => $this->faker->numberbetween(10000000, 99999999),
            'user_id' => $this->faker->numberBetween(1, 9999),
            'type' => $this->faker->text(10),
            'content' => $this->faker->text(25),
            'use_time' => $this->faker->time('Y-m-d H:i:s', 'now'),
        ];
    }
}
